package demoMod.invincibleOne.cards.optionCards;

import basemod.abstracts.CustomCard;
import com.megacrit.cardcrawl.characters.AbstractPlayer;
import com.megacrit.cardcrawl.core.CardCrawlGame;
import com.megacrit.cardcrawl.localization.CardStrings;
import com.megacrit.cardcrawl.monsters.AbstractMonster;
import demoMod.invincibleOne.InvincibleOneMod;

public class ChooseMonsterCard extends CustomCard {
    public static final String ID = InvincibleOneMod.makeID("ChooseMonsterCard");

    private static final CardStrings cardStrings = CardCrawlGame.languagePack.getCardStrings(ID);
    public static final String NAME = cardStrings.NAME;
    public static final String DESCRIPTION = cardStrings.DESCRIPTION;
    public static final String IMG_PATH = "cards/todo_skill.png";

    private static final CardType TYPE = CardType.SKILL;
    private static final CardRarity RARITY = CardRarity.SPECIAL;
    private static final CardTarget TARGET = CardTarget.NONE;

    private static final int COST = -2;
    private final Runnable callback;

    public ChooseMonsterCard(AbstractMonster monster, Runnable callback) {
        super(ID, NAME, InvincibleOneMod.getResourcePath(IMG_PATH), COST, "", TYPE, CardColor.COLORLESS, RARITY, TARGET);
        this.name = monster.name;
        this.callback = callback;
    }

    @Override
    public void onChoseThisOption() {
        this.callback.run();
    }

    @Override
    public boolean canUpgrade() {
        return false;
    }

    @Override
    public void upgrade() {

    }

    @Override
    public void use(AbstractPlayer p, AbstractMonster m) {

    }
}
